package com.jiuyue.movehouse.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiuyue.movehouse.entity.Car;
import com.jiuyue.movehouse.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yourFather
 * @since 2022-02-11
 */
public interface OrderService extends IService<Order> {

    Order reservation(Order order);

    List<Order> getMyOrder(Long userId);

    Order cancelOrder(Long orderId);

    Order payOrder(Long orderId);

    Page<Order> getOrderList(Page page, Order order);

    List<Car> getCarList();

    void receiveOrder(Long orderId, Long carId);

    void completeOrder(Long orderId, BigDecimal realPrice);
}
